import {request} from "./request";
//查询所有
export function getMarCustomerPageInfo({pageNum,pageSize,name,khno,level,area,xyd,fr,state,isValid}){
    return request({
        url: '/tCustomer/pager',
        method: 'get',
        params: {
            pageNum,
            pageSize,
            name,
            khno,
            level,
            area,
            xyd,
            fr,
            state,
            isValid
        }
    })
}
//客户信息添加
export function addCustomer(Customer){
    return request({
        url:'/tCustomer/add',
        method:'post',
        data:Customer
    })
}
//客户信息修改
export function updateCustomer(Customer){
    return request({
        url:'/tCustomer/update',
        method:'put',
        data:Customer
    })
}
//客户信息删除
export function deleteCustomer(id){
    return request({
        url: '/tCustomer/' + id,
        method: 'delete'
    })
}
//客户订单查询所有和分页
export function getCustomerOrderInfo({pageNum,pageSize}){
    return request({
        url: '/customerOrder/pager',
        method: 'get',
        params: {
            pageNum,
            pageSize,
        }
    })
}